package com.gjw.designpattern.proxy.staticProxy;

/**
 * 真实对象 实现抽象主题
 */
public class Person implements IMarry{

    private String name;


    @Override
    public void marry() {
        System.out.println(this.name+"要结婚啦");
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
